import request from '@/utils/request'

// 查询直播管理列表
export function listLiveRecords(query) {
  return request({
    url: '/hmk/liveRecords/list',
    method: 'get',
    params: query
  })
}

export function status1List() {
  return request({
    url: '/hmk/liveRecords/status1List',
    method: 'get',
  })
}


export function authorListBySum(query) {
  return request({
    url: '/hmk/liveRecords/authorListBySum',
    method: 'get',
    params: query
  })
}


export function selectUserByRoleId() {
  return request({
    url: '/hmk/liveRecords/selectUserByRoleId',
    method: 'get'
  })
}


// 查询直播管理详细
export function getLiveRecords(id) {
  return request({
    url: '/hmk/liveRecords/' + id,
    method: 'get'
  })
}

// 新增直播管理
export function addLiveRecords(data) {
  return request({
    url: '/hmk/liveRecords',
    method: 'post',
    data: data
  })
}

// 修改直播管理
export function updateLiveRecords(data) {
  return request({
    url: '/hmk/liveRecords',
    method: 'put',
    data: data
  })
}

// 删除直播管理
export function delLiveRecords(id) {
  return request({
    url: '/hmk/liveRecords/' + id,
    method: 'delete'
  })
}
